import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {
  Button, Tabbar, TabbarItem, Icon, Search, Swipe,
  SwipeItem, Grid, GridItem, CountDown, PullRefresh, List,
  GoodsAction, GoodsActionIcon, GoodsActionButton, Popup, Card,
  Stepper, Form, Field, Divider, Checkbox, SubmitBar, SwipeCell,
  AddressEdit, Cell, Switch, Area, AddressList, ContactCard,
  Uploader, Lazyload
} from 'vant'
import './assets/css/base.css'
import './assets/fonts/iconfont.css'
import './assets/fonts/fontsizeAuto.js'
import plugin from './plugins'
import loading from './plugins/Loading'
Vue.config.productionTip = false
Vue.use(plugin).use(loading)
Vue.use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(CountDown)
  .use(PullRefresh)
  .use(List)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(Form)
  .use(Field)
  .use(Divider)
  .use(Checkbox)
  .use(SubmitBar)
  .use(SwipeCell)
  .use(AddressEdit)
  .use(Cell)
  .use(Switch)
  .use(Area)
  .use(AddressList)
  .use(ContactCard)
  .use(Uploader)
  .use(Lazyload, {
    // 识别不了.jfif格式图片
    loading: require('./assets/img/miaosha.png'),
    error: require('./assets/img/miaosha.png'),
    preload: '1'
  })
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
